package com.heima.apis.wemedia;

import com.heima.model.admin.dtos.NewsAuthDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-wemedia")
public interface IWeUserClient{
    @PostMapping("/api/v1/auth/authPass")
    ResponseResult authPass(@RequestBody WmUser wmUser);
    @PostMapping("api/v1/news/list_vo")
    PageResponseResult findListByVo(@RequestBody NewsAuthDto newsAuthDto);
    @PostMapping("api/v1/news/auth_fail")
    ResponseResult authFail(@RequestBody NewsAuthDto newsAuthDto);
    @GetMapping("api/v1/news/one_vo/{id}")
    ResponseResult findOneById(@PathVariable Integer id);

}
